import axios from 'axios';

// 商品评论列表
let reply_list = (params) => axios.get('/product/reply', { params });

// 添加虚拟评论
let add_fictitious_reply = (data) => axios.post('/product/reply/save_fictitious_reply', data);

// 回复评论
let reply_comment = (id, data) => axios.put(`/product/reply/set_reply/${id}`, data);

// 删除评论
let del_comment = (id, params) => axios.delete(`/product/reply/${id}`, { params });

export default {
    reply_list,
    add_fictitious_reply,
    reply_comment,
    del_comment,
}